package com.linciping.treeview;

import java.util.List;

public class AreaNode extends Node<AreaNode> {

    private String code;
    private String name;
    private List<AreaNode> childrenList;

    public AreaNode(String code, String name, List<AreaNode> childrenList) {
        this.code = code;
        this.name = name;
        this.childrenList = childrenList;
    }

    public String getCode() {
        return code;
    }

    public String getName() {
        return name;
    }

    @Override
    public List<AreaNode> getChildrenList() {
        return childrenList;
    }
}
